<!DOCTYPE html>
<html class="um landscape min-width-240px min-width-320px min-width-480px min-width-768px min-width-1024px">
    <head>
        <title></title>
        <meta charset="utf-8">
        <meta name="viewport" content="target-densitydpi=device-dpi, width=device-width, initial-scale=1, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
        <link rel="stylesheet" href="css/ui-box.css">
        <link rel="stylesheet" href="css/ui-base.css">
        <link rel="stylesheet" href="css/project/ui-tab.css">
        <link rel="stylesheet" href="css/project/style.css">
        <link rel="stylesheet" href="css/ui-input.css">
        <script src="js/appcan.js"></script>
        <script src="js/zy_control.js"></script>
        <script src="js/zy_click.js"></script>
        <script src="js/zy_json.js"></script>
        <script src="js/init.js"></script>
		<script src="js/base64.js"></script>
        <script src="js/main.js"></script>
        <script src="js/z_API.js"></script>
		<script src="js/talkingdata.js"></script>
    </head>
    <body class="um-vp c-gra1" ontouchstart>
        <div id="page_0" class="up ub ub-ver" tabindex="0">
            <!--header开始-->
            <div id="header" class="uh t-wh ub c-blu">
                <div class="uh t-wh ub bgc">
                    <div class="umw2 ub ub-ac ub-pc" ontouchstart="zy_touch('')" onclick="exitApp();"><!-- onclick="winClose()"-->
	                	<div class="uwh-tBtn ub-img t-btn-a1"></div>
	            	</div>
                    <h1 class="ut ub-f1 ulev-3 ut-s tx-c" tabindex="0">地服领域</h1>
                    <div class="umw4 ub ub-ac ub-pc" ontouchstart="zy_touch()" onclick="">
                        <div class="t-btn-ds2 ub-img uwh-tBtn">
                        </div>
                    </div>
                </div>
            </div>
            <!--header结束-->
            <!--content开始-->
            <div id="content" class="ub-f1 tx-l t-bla zvcontent">
            </div>
            <!--content结束-->
        </div>
    </body>
    <script>
        zy_init();
        var titHeight = 0;
        window.uexOnload = function(type){
            setLocalLocation();
            // if (!type) {
            /**
             * 判斷用戶是否登錄，根據員工號查詢下我們數據庫是否有存在
             * 如果員工號不存在則跳轉到登錄界面，否則直接通過
             *
             */
            //获取运行传递参数配置 start
            uexWidget.cbGetOpenerInfo = getopenInfo;
            uexWidget.getOpenerInfo();//获取主Widget传递信息 
            // 获取运行传递参数配置 end
            //获取运行传递参数和值 start
            function getopenInfo(opId, dataType, data){
                var tmpArr = data.split(".");
                var net = localStorage['MU3-NetworkStatus'];
                if(net === "NONWK"){
                  toasts("暂无网络连接,请检查您的网络...")
                  return;  
                }
                /*if(tmpArr[0] == "BaggageServiceMainPage"){

                    var loginName = localStorage['MU30-lOGIN-USRNAME'];
                    $.ajax({
                      url: "http://mpservice.ceair.com/mpservice/login_mpservice.action?loginName="+loginName,
                      type: "GET",
                      dataType: "JSON",
                      success: function(res) {
                        res = JSON.parse(res);
                         var str=res.array.AppRole;
                         
                         if(str.indexOf("22") <= -1){
                           
                             appcan.window.open({
                                 name : "authorityTip_win",
                                 dataType : 0,
                                 aniId : 5,
                                 data : "authorityTip_win.html",
                             });                         
                        }else{
                            var path = localStorage.getItem("MU3~StartPage");
                            var name = path.replace(".html", "").replace(/^\s+|\s+$/g, "");
                            openNewWin(name, path, 0);
                        }
                      },
                      error: function(err) {
                      
                      }
                    });
                    return;
                }*/
                if (tmpArr[1] == "html") {
                    
                    var path = localStorage.getItem("MU3~StartPage");
                    if (path) {
                        var name = path.replace(".html", "").replace(/^\s+|\s+$/g, "");
                        path = path.replace(/^\s+|\s+$/g, "");
						var p1="candidateInput.html";
						var p2="candidateUpgrade.html";
						var p3="candidateDowngrades.html";
						var p4="volunteer.html";
//						alert(path)
//						IC.talkingDataCount("移动地服登陆","0000");
						if(path==p1||path==p2)
						{
							openNewWin('login','login.html');
						}
						else if(path==p3||path==p4)
						{
						    openNewWin('login','login.html');
						}
						else
						{
							 openNewWin(name, path, 0);
						}
                       
                    }
                }
                else {
                    var json = JSON.parse(data);
                    var page = json.page;
                    localStorage.setItem("fly_zv_carrier", json.carrier);
                    localStorage.setItem("fly_zv_flightNo", json.flight_no);
                    localStorage.setItem("fly_zv_pdate", json.date);
                    localStorage.setItem("fly_zv_dept", json.dept);
                    localStorage.setItem("fly_zv_arr", json.arr);
                    localStorage.setItem("fly_zv_choose", json.type);
                    openNewWin("fly_passenger_information_center", "fly_passenger_information_center.html", '0')
                }
            }
            
        }
        function closeWindowRoot(){
            
            appcan.window.close(-1);
        }
        
    </script>
</html>
